﻿using Common.Logging;
using Quartz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YunSpace.Application.OrderFlowManage;

namespace YunSpace.Services.Jobs.OrderFlow
{
    public class DemandOrderFlowJob : IJob
    {
        private static readonly ILog logger = LogManager.GetLogger(typeof(DemandOrderFlowJob));

        public void Execute(IJobExecutionContext context)
        {
            try
            {
                ClientOrderJobApp service = new ClientOrderJobApp();

                service.ExecuteDemandOrder();
            }
            catch (Exception ex)
            {
                logger.ErrorFormat("需求订单计划任务：更新定时任务异常！原因：{0}", ex);
            }
        }
    }
}
